﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace mrp16062010.Rota
{
    [Serializable()]
    abstract class AbstractRota : ISerializable
    {
        public int Kod;
        string Tanim;
        private RotaParcasi rota;
        //Bulunduğu RotaParcasını temsil eder
        public RotaParcasi Rota
        {
            get { return rota; }
            set { rota = value; }
        }

        public AbstractRota()
        {

        }

        public AbstractRota(SerializationInfo info, StreamingContext context)
        {
            Serialize.InfoCopier.Read(info, this);
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info = Serialize.InfoCopier.Write(info, this);
        }
    }
}
